<!DOCTYPE html>
<html class="x-admin-sm">
  <head>
    <meta charset="UTF-8">
    <title>员工列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" href="__ADMIN__/css/font.css">
    <link rel="stylesheet" href="__ADMIN__/css/xadmin.css">
    <script type="text/javascript" src="__ADMIN__/js/jquery.min.js"></script>
    <script type="text/javascript" src="__ADMIN__/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="__ADMIN__/js/xadmin.js"></script>
    <script type="text/javascript" src="__ADMIN__/js/cookie.js"></script>
    <style>
        .layui-btn+.layui-btn{
            margin-left: 0;
        }
    </style>
  </head>
  
  <body>
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a><cite>{$nav}</cite></a>
      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon layui-icon-refresh-3" style="line-height:30px"></i></a>
    </div>
    <div class="x-body x-admin">
      <xblock>
        <h2>你当前IP为{$ip_text}</h2>
      </xblock>
      <div class="layui-table-body layui-table-main" style="width: 100%;">
      <table class="layui-table layui-form" style="width:700px">
        <thead>
        <tr>
            <th>ip</th>
            <th>登录人</th>
            <th>时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
          {volist name="list" id="value"}
          <tr>
            <td>{$value.ip_text}</td>
            <td>{:idToAdminname($value.admin_id)}</td>
            <td>{$value.login_time|date="Y-m-d H:i",###}</td>
            <td><a href="ip_log_status?status=1&ip={$value.ip}" class="layui-btn layui-btn-primary">授权</a></td>
          </tr>
          {/volist}
        </tbody>
      </table>
    </div>
      <div class="page">
        <div>
        </div>
      </div>
    </div>

    <script>
      layui.use(['form'], function(){
        form = layui.form;
        /*管理员开关*/

      });

    </script>
  </body>

</html>